﻿using Newtonsoft.Json;
using static CoreWebApiNuGet.ApiContracts.ApiResults;

namespace CoreWebApiNuGet.Aop
{
    public class ApiResponseMiddleware
    {
        private readonly RequestDelegate _next;

        public ApiResponseMiddleware(RequestDelegate next)
        {
            _next = next;
        }

        public async Task Invoke(HttpContext context)
        {
            await _next(context);
        }
    }
}
